-- GENERATED SPELL FOR [Anok'ra the Manipulator] --


function spell0_26769(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(13860,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26769', 1500, 1)
end

function spell1_26769(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(16568,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26769', 3000, 1)
end

function spell2_26769(pUnit, Event) --@Wavering Will,n/a--
pUnit:FullCastSpellOnTarget(51676,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26769', 15322, 1)
end

function Sorts_26769(pUnit, Event)
local choix_sorts_26769 = math.random(0, 2)
if choix_sorts_26769 == 0 then
pUnit:RegisterEvent('spell0_26769', 1, 1)
end
if choix_sorts_26769 == 1 then
pUnit:RegisterEvent('spell1_26769', 1, 1)
end
if choix_sorts_26769 == 2 then
pUnit:RegisterEvent('spell2_26769', 1, 1)
end
end

function mob26769_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26769', math.random(1500, 3000), 1)
end

function mob26769_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26769_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26769_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26769, 1, 'mob26769_Action')
RegisterUnitEvent(26769, 2, 'mob26769_Leave')
RegisterUnitEvent(26769, 3, 'mob26769_Kill')
RegisterUnitEvent(26769, 4, 'mob26769_Die')
